<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        // 定义长字符串并且携带换行的普通写法
        let str = "<ui>"
                    + "<li></li>"
                    + "<li></li>"
                    + "</ui>"

        // 使用模板字符串定义长字符串和换行字符串
        let str2 = `<ui>
                        <li></li>
                        <li></li>
                    </ui>`
        console.log(str)
        console.log(str2)

        // 模板字符串拼接字符串
        let a = "哈哈"
        let b = "嘿嘿"
        let c = `${a}or${b}`
        console.log(c)

    </script>
</head>
<body>
    <ui>
        <li></li>
        <li></li>
    </ui>
    
</body>
</html>